<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>houdunren.com</title>
  </head>

  <body>
    <script>
      // new Array(5)
      // let array = [['hdcms'], ['houdunren', 'cms']];
      // let lessons = [{ name: "php", click: 33 }, { name: "js", click: 99 }];
      // console.log(array[1][1]);
      // console.log(lessons[1].name);
      // const name = 3;
      // // name = 5;
      // const arr = [1, 2];
      // arr[1] = 99;
      // console.log(arr);

      function User() {
        this.name = 'llq';
      }
      User.prototype.show = function () {
        console.log(this);
      };
      let lisi = new User();
      lisi.show();
      console.dir(lisi);
      console.dir(User);

      // global
      // container
      // require
      // requset
      // super
      // slice、substring 第二个参数为相减的长度
      // let hd = 'houdunren.com';
      // console.log(hd.slice(3, -9)); //hou 负数转为0
    </script>
  </body>
</html>
